package com.ruoyi.cderp.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 仓库调拨单对象 tbl_sc_transfer_order
 *
 * @author ruoyi
 * @date 2025-04-01
 */
public class TblScTransferOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 单据号 */
    @Excel(name = "单据号")
    private String code;

    /** 转出仓库ID */
    @Excel(name = "转出仓库ID")
    private String sourceScId;

    // 转出仓库编号
    private String sourceScCode;

    // 转出仓库名称
    private String sourceScName;

    /** 转入仓库ID */
    @Excel(name = "转入仓库ID")
    private String targetScId;

    // 转入仓库编号
    private String targetScCode;

    // 转入仓库名称
    private String targetScName;

    /** 调拨数量 */
    @Excel(name = "调拨数量")
    private Long totalNum;

    /** 调拨成本金额 */
    @Excel(name = "调拨成本金额")
    private BigDecimal totalAmount;

    /** 备注 */
    @Excel(name = "备注")
    private String description;

    /** 创建人ID */
    private String createById;

    // 创建时间
    private Date createTime;

    // 创建最早时间
    private Date createMinTime;

    // 创建最晚时间
    private Date createMaxTime;

    /** 修改人ID */
    private String updateById;

    /** 审核人 */
    @Excel(name = "审核人")
    private String approveBy;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approveTime;

    // 审核最早时间
    private Date approveMinTime;

    // 审核最晚时间
    private Date approveMaxTime;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 拒绝原因 */
    private String refuseReason;

    /** 仓库调拨单明细信息 */
    private List<TblScTransferOrderDetail> tblScTransferOrderDetailList;

    public String getSourceScId() {
        return sourceScId;
    }

    public void setSourceScId(String sourceScId) {
        this.sourceScId = sourceScId;
    }

    public String getTargetScId() {
        return targetScId;
    }

    public void setTargetScId(String targetScId) {
        this.targetScId = targetScId;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateMinTime() {
        return createMinTime;
    }

    public void setCreateMinTime(Date createMinTime) {
        this.createMinTime = createMinTime;
    }

    public Date getCreateMaxTime() {
        return createMaxTime;
    }

    public void setCreateMaxTime(Date createMaxTime) {
        this.createMaxTime = createMaxTime;
    }

    public Date getApproveMinTime() {
        return approveMinTime;
    }

    public void setApproveMinTime(Date approveMinTime) {
        this.approveMinTime = approveMinTime;
    }

    public Date getApproveMaxTime() {
        return approveMaxTime;
    }

    public void setApproveMaxTime(Date approveMaxTime) {
        this.approveMaxTime = approveMaxTime;
    }

    public String getSourceScCode() {
        return sourceScCode;
    }

    public void setSourceScCode(String sourceScCode) {
        this.sourceScCode = sourceScCode;
    }

    public String getSourceScName() {
        return sourceScName;
    }

    public void setSourceScName(String sourceScName) {
        this.sourceScName = sourceScName;
    }

    public String getTargetScCode() {
        return targetScCode;
    }

    public void setTargetScCode(String targetScCode) {
        this.targetScCode = targetScCode;
    }

    public String getTargetScName() {
        return targetScName;
    }

    public void setTargetScName(String targetScName) {
        this.targetScName = targetScName;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setTotalNum(Long totalNum)
    {
        this.totalNum = totalNum;
    }

    public Long getTotalNum()
    {
        return totalNum;
    }
    public void setTotalAmount(BigDecimal totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount()
    {
        return totalAmount;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setCreateById(String createById)
    {
        this.createById = createById;
    }

    public String getCreateById()
    {
        return createById;
    }
    public void setUpdateById(String updateById)
    {
        this.updateById = updateById;
    }

    public String getUpdateById()
    {
        return updateById;
    }
    public void setApproveBy(String approveBy)
    {
        this.approveBy = approveBy;
    }

    public String getApproveBy()
    {
        return approveBy;
    }
    public void setApproveTime(Date approveTime)
    {
        this.approveTime = approveTime;
    }

    public Date getApproveTime()
    {
        return approveTime;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setRefuseReason(String refuseReason)
    {
        this.refuseReason = refuseReason;
    }

    public String getRefuseReason()
    {
        return refuseReason;
    }

    public List<TblScTransferOrderDetail> getTblScTransferOrderDetailList()
    {
        return tblScTransferOrderDetailList;
    }

    public void setTblScTransferOrderDetailList(List<TblScTransferOrderDetail> tblScTransferOrderDetailList)
    {
        this.tblScTransferOrderDetailList = tblScTransferOrderDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
                .append("sourceScId", getSourceScId())
                .append("sourceScCode", getSourceScCode())
                .append("sourceScName", getSourceScName())
                .append("targetScId", getTargetScId())
                .append("targetScCode", getTargetScCode())
                .append("targetScName", getTargetScName())
            .append("totalNum", getTotalNum())
            .append("totalAmount", getTotalAmount())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createById", getCreateById())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateById", getUpdateById())
            .append("updateTime", getUpdateTime())
            .append("approveBy", getApproveBy())
            .append("approveTime", getApproveTime())
            .append("status", getStatus())
            .append("refuseReason", getRefuseReason())
            .append("tblScTransferOrderDetailList", getTblScTransferOrderDetailList())
            .toString();
    }
}
